interface TableList {
  prop?: string;
  label?: string;
  // 固定 接收 left right
  fixed?: string;
  width?: number;
  sortable?: boolean;
  switch?: boolean;
  img?: boolean;
}

export interface IFromData {
  nickName?: string;
  username: string;
  password: string;
  avatar?: string;
}

export const tableList: TableList[] = [
  {
    prop: "id",
    label: "序号",
    width: 100,
  },
  {
    prop: "title",
    label: "标题",
  },
  {
    prop: "address",
    label: "地址",
  },
  {
    prop: "addressName",
    label: "地址名称",
  },
  {
    prop: "categoryName",
    label: "分类名称",
  },
  {
    prop: "image",
    label: "缩略图",
    img:true
  },
  {
    prop: "price",
    label: "价格",
  },
  {
    prop: "score",
    label: "星级",
  },
  {
    prop: "scoreCount",
    label: "评分",
  },
  {
    prop: "sort",
    label: "排序",
  },
  {
    prop: "hot",
    label: "推荐",
    switch: true,
  },
  {
    prop: "status",
    label: "状态",
    switch: true,
  },
  {
    prop: "createTime",
    fixed: "right",
    label: "创建时间",
    sortable: true,
  },
  {
    prop: "updateTime",
    label: "更新时间",
    sortable: true,
  },
];
